package com.fccommunity.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.fccommunity.R;
import com.fccommunity.base.BaseActivity;

/**
 * Created by yiwei on 16/4/16.
 */
public class SplashActivity extends BaseActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        findViewById(R.id.loginTv).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(SplashActivity.this, LoginActivity.class));
            }
        });
        findViewById(R.id.registTv).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(SplashActivity.this, RegisterActivity.class));
            }
        });
//        new Handler().postDelayed(new Runnable() {
//            @Override
//            public void run() {
//                //startActivity(new Intent(SplashActivity.this, MainActivity.class));
//                startActivity(new Intent(SplashActivity.this, LoginActivity.class));
//                finish();
//            }
//        }, 3000);
    }

    @Override
    protected void initTitle() {

    }
}
